import request from "@/utils/request";

export function listAccount(query) {
    return request({
        url: 'api/gameInfo/list',
        method: 'get',
        params: query
    })
}
export function addAccount(query) {
    return request({
        url: 'api/gameInfo',
        method: 'post',
        data: query
    })
}

export function categoryList(){
    return request({
        url: '/api/gameInfo/categoryList',
        method: 'get'
    })
}

export function gameInfo(){
    return request({
        url: '/api/gameInfo/getGameInfo',
        method: 'get'
    })
}

export function deleteAccount(accountIds) {
    return request({
        url: 'api/gameInfo/' + accountIds,
        method: 'delete',
    })
}